import {Vector4} from "../math/Vector4";

export class ColorUtil {
    static reserveColor(color: Vector4) {
        return new Vector4(255 - color.x, 255 - color.y, 255 - color.z, color.w);
    }

    static colorToString(color: Vector4) {
        return `rgb(${Math.round(color.x)}, ${Math.round(color.y)}, ${Math.round(color.z)})`;
    }
}